'read-passwd' can toggle the visibility of passwords
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 25 Feb 2024 09:06:09 +0000 (10:06 +0100)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 25 Feb 2024 09:06:09 +0000 (10:06 +0100)
commit39e3fce0d5e0f5db00e44905bcd2590170098d63
treed32d8997dc075320174507903de07ae6e1a11c33
parent67ba629a91aee3db39f3c81744e88c02ee710bdc
'read-passwd' can toggle the visibility of passwords

* doc/lispref/minibuf.texi (Reading a Password):
* etc/NEWS: 'read-passwd' can toggle the visibility of passwords.

* etc/images/README: Mention the new images below.
* etc/images/conceal.pbm:
* etc/images/conceal.svg:
* etc/images/reveal.pbm:
* etc/images/reveal.svg: New images.

* lisp/simple.el (read-passwd--mode-line-buffer)
(read-passwd--mode-line-icon): New defvars.
(read-passwd--toggle-visibility, read-passwd-mode): New defuns.

* lisp/subr.el (read-passwd-map): Add 'TAB' binding.
(read-passwd--hide-password): New defvar.
(read-passwd--hide-password): Rename function from
`read-password--hide-password'.  Adapt callees.  Implement both
hiding and showing the password.  (Bug#69237)
(read-passwd): Call `read-passwd-mode'.
doc/lispref/minibuf.texi
etc/NEWS
etc/images/README
etc/images/conceal.pbm [new file with mode: 0644]
etc/images/conceal.svg [new file with mode: 0644]
etc/images/reveal.pbm [new file with mode: 0644]
etc/images/reveal.svg [new file with mode: 0644]
lisp/simple.el
lisp/subr.el